home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / getch.1 < prev    next >
Text File  |  1995-07-25  |  745b  |  13 lines

  1. getch: read a character in raw mode and write it and a newline to stdout.
  2. If the input is a tty, it is put in raw mode to read a single character.
  3. Usage: getch [ecp]
  4. e: don't disable echoing of characters typed to tty.
  5. c: get & write characters until stopped by signal or end of input.
  6.    In this mode, getch will terminate if sent an interrupt, quit, or
  7.    terminate signal, or if input ends.  If the input is a tty, getch
  8.    will terminate if the EOF character is read.  Also, getch can be
  9.    stopped by a broken pipe signal, which will be delivered if getch
  10.    is writing to a pipe and the output of the pipe is closed.
  11. p: print a line giving the process id.  This can be used to kill
  12.    getch without it reading & writing another character.
  13.